
package com.qhs.sys.vo;

import com.qhs.sys.entity.SysUserInfo;
import com.qhs.framework.utils.DateUtil;

import java.io.Serializable;
import java.util.List;

public class UserVO implements Serializable {
    private Long userId;

    private String userName;

    private String nickName;

    private Long phone;

    private Integer status;

    private Integer sort;

    private String memo;

    private Integer userType;

    private String createTime;

    private List<MenuVO> authMenu;

    public static UserVO clone(SysUserInfo sysUserInfo){

        UserVO userVO = new UserVO();
        userVO.setNickName(sysUserInfo.getNickName());
        userVO.setUserName(sysUserInfo.getUserName());
     //   userVO.setCreateTime(sysUserInfo.getCreateTimeStr());
        userVO.setMemo(sysUserInfo.getMemo());
        userVO.setPhone(sysUserInfo.getPhone());
        userVO.setStatus(sysUserInfo.getStatus());
        userVO.setSort(sysUserInfo.getSort());
        userVO.setUserId(sysUserInfo.getId());
        userVO.setUserType(sysUserInfo.getUserType());

        return userVO;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName == null ? null : nickName.trim();
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public List<MenuVO> getAuthMenu() {
        return authMenu;
    }

    public void setAuthMenu(List<MenuVO> authMenu) {
        this.authMenu = authMenu;
    }

}